package com.boluo.business.service;

import java.util.List;
import com.boluo.business.domain.BusAppointment;

/**
 * 预约单Service接口
 * 
 * @author boluo
 * @date 2023-04-11
 */
public interface IBusAppointmentService 
{
    /**
     * 查询预约单
     * 
     * @param id 预约单主键
     * @return 预约单
     */
    public BusAppointment selectBusAppointmentById(Long id);

    /**
     * 查询预约单列表
     * 
     * @param busAppointment 预约单
     * @return 预约单集合
     */
    public List<BusAppointment> selectBusAppointmentList(BusAppointment busAppointment);

    /**
     * 新增预约单
     * 
     * @param busAppointment 预约单
     * @return 结果
     */
    public int insertBusAppointment(BusAppointment busAppointment);

    /**
     * 修改预约单
     * 
     * @param busAppointment 预约单
     * @return 结果
     */
    public int updateBusAppointment(BusAppointment busAppointment);

    /**
     * 批量删除预约单
     * 
     * @param ids 需要删除的预约单主键集合
     * @return 结果
     */
    public int deleteBusAppointmentByIds(Long[] ids);

    /**
     * 删除预约单信息
     * 
     * @param id 预约单主键
     * @return 结果
     */
    public int deleteBusAppointmentById(Long id);

    /**
     * 修改预约单
     * @param id 预约单id
     * @param status 要修改的预约单状态
     * @return 1 成功 0 失败
     */
    int updateStatus(Long id, Integer status);
}
